package com.shuimuzhen.SecondhandMotorManagementSystem.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shuimuzhen.SecondhandMotorManagementSystem.pojo.entity.Motorcycle;
import com.shuimuzhen.SecondhandMotorManagementSystem.pojo.entity.SecondHandMotorcycle;
import com.shuimuzhen.SecondhandMotorManagementSystem.mapper.SecondHandMotorMapper;
import com.shuimuzhen.SecondhandMotorManagementSystem.service.SecondHandMotorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SecondHandMotorServiceImpl extends ServiceImpl<SecondHandMotorMapper, SecondHandMotorcycle> implements SecondHandMotorService {
    @Autowired
    private SecondHandMotorMapper secondHandMotorMapper;

    /***
     *
     * @param secondHandMotorcycle
     * @return 不保证非空的原型pojo
     */
    @Override
    public Motorcycle findPrototype(SecondHandMotorcycle secondHandMotorcycle) {
        return secondHandMotorMapper.selectPrototype(secondHandMotorcycle);
    }


}
